<?php
$di -> set('router', function() {
  $router = new \Phalcon\Mvc\Router(false);
  //$router -> setUriSource(\Phalcon\Mvc\Router::URI_SOURCE_SERVER_REQUEST_URI);

  $router -> setDefaultModule('home');
  $router -> setDefaultController('Index');
  $router -> setDefaultAction('index');

  $router -> mount(include SRC_PATH . '/modules/home/router.php');

  $router -> mount(include SRC_PATH . '/modules/admin/router.php');
  return $router;
});